'use strict'
const chatService = require('../services').chatService
const chatController = {}

// 获取所有分类
chatController.getChatMessage = async (ctx, next) => {
    const result = await chatService.getChatMessage({ ...ctx.request.query })
    // console.log('getChatMessage',result)
    ctx.result = result
    return next()
}

module.exports = chatController
